import os

path = os.path.abspath(r"r_learning\chapter2.R")
unix_path = path.replace(os.sep,'/')
print('source("{}")'.format(unix_path))